﻿using Service.AccountService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EnterpriseWebSite.Controllers
{
    public class AccountController : Controller
    {
        private readonly AccountService accounService = new AccountService();
        //
        // GET: /Account/

        public ActionResult Index()
        {
            bool result = accounService.Login("admin", "123456");

            if(result)
            {
                return Content("success");
            }
            else
            {
                return Content("fail");
            }
        }

    }
}
